<template>
  <manage-page
    :basePath="basePath"
    :conditionLayout="2"
    :customTable="false"
    :defaultQueryParam="defaultQueryCondition"
    :manageCondition="false"
    :manageExport="true"
    :manageImport="true"
    :manageRefresh="true"
    :multiSelect="false"
    @handleCurrentChange="handleCurrentChange"
    @handleQueryData="handleQueryData"
    @handleSelectionChange="handleSelectionChange"
    ref="mainTable"
  >
    <span slot="custom-table">替换table</span>
  </manage-page>
</template>

<script>
import managePage from '@/components/ManagePage'

export default {
  components: {
    managePage
  },
  data () {
    return {
      basePath: '',
      defaultQueryCondition: {}
    }
  },
  mounted () {
    const fullPath = this.$router.currentRoute.path
    this.basePath = fullPath.substr(fullPath.lastIndexOf('/sys') + '/sys'.length + 1)
    this.initButton()
  },
  methods: {
    initButton () {
      this.$refs.mainTable.addButton.show = true
      this.$refs.mainTable.copyButton.show = true
      this.$refs.mainTable.disableButton.show = true
      this.$refs.mainTable.deleteButton.show = true
    },
    handleCurrentChange (current, old) {

    },
    handleQueryData (data) {

    },
    handleSelectionChange (selectedData) {

    }
  }
}

</script>

<style scoped>

</style>
